﻿var urls = [
//海运进口
'coolzon-s0-1.html',
//空运
'coolzon-s4-4-1.html',
//全局资源
'coolzon-s3-3.html',
//特色资源
'coolzon-s3-4.html',
//项目
'coolzon-s5.html'
];
var parts = ['P0',];
var index = 0;
//海运出口
var largeUrl ='coolzon-s0.html';
function timer_tick() {
    window.getScene().getPart('P0').setPropertyXmlString('Url', '<String Value=\"' + urls[index] + '\"/>');
    window.getScene().getPart('P' + (index + 1)).setPropertyXmlString('Url', '<String Value=\"' + largeUrl + '\"/>');
    var temp = urls[index];
    urls[index] = largeUrl;
    largeUrl = temp;
    index++;
    if (index > 4) {
        index = 0;
    }
}

function onActive(scene) {
    scene.startTimer(60000, "timer_tick");
}